package com.mianyang.zhangsan.controller;


import com.mianyang.zhangsan.common.base.BaseController;
import com.mianyang.zhangsan.common.base.R;
import com.mianyang.zhangsan.model.entity.SecIdentity;
import com.mianyang.zhangsan.service.ISecIdentityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * 实名认证接口
 * @author jiangjr
 * @since 2022-10-23
 */
@RestController
@RequestMapping("/identity")
public class SecIdentityController extends BaseController {
    @Autowired
    private ISecIdentityService identityService;

    /**
     * 实名认证
     */
    @PostMapping
    public R identification(@RequestBody SecIdentity identity) {
        identityService.save(identity);
        return success();
    }

    /**
     * 更新证件信息
     */
}
